import FetchHelper from "../helper/fetch-helper";



 //用户权限管理
export default class LoopMsgAPi {
 
  //获取用户列表
  static async YhList() {
    const resp = await FetchHelper.getJson(`/admin-api/system/user/list`)
    return resp
  }
  //获取用户'详细'信息-id
  static async YhDetailed_Id(userId) {
    const resp = await FetchHelper.getJson(`/admin-api/system/user/${userId}`)
    return resp
  }


   //查询用户权限_id
   static async Yh_ID(userID) {
    const resp = await FetchHelper.getJson(`/admin-api/system/user/userMenu/${userID}`)
    return resp
  }
  //修改用户权限_id
  static async ReviseYhqx_ID(userId,menuIds) {
  
    const resp = await FetchHelper.putJson(`/admin-api/system/user/editPerms?userId=${userId}&${menuIds}`)
    return resp
  }
}